package com.cy.controller;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cy.pojo.Ttextpojo;
import com.cy.service.TextService;
@Controller
public class TtextController {
	
//	获取前台传输过来的类对象进行加工
	@Autowired
	TextService textService;
	
	@RequestMapping(value="changetext", method = {RequestMethod.GET})
	@ResponseBody
	String updateTtext(Ttextpojo ttext) {
		String res = textService.textup(ttext);
		return res;
	};

	
	
//  向前台传输所有页面的文本
	
	List<Ttextpojo> getIdtoTtext(String wid){
		System.out.println("getIdtoTtext没写完");
		return null;
	};

	
//	

	
}
